package com.ck.ck_back.dao;

import com.ck.ck_back.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String openid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String openid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

//    查询所有用户
    List<User> selectalluser();

//    查询身份
    Boolean selectidentity(String openid);

    User select_author_production(String openid,int state);

//    根据用户id拿所有的历史消息
//    User_history selectallhistory(String openid);
//      获取所有待审核的用户
    List<User> getallwaitaudit();

}